about ServerLimit and ThreadLimit

about ServerLimit and ThreadLimit

am 14.12.2009 11:00:31 von Tseveendorj Ochirlantuu

--00504502f52d0673da047aad58ab
Content-Type: text/plain; charset=UTF-8

Hello,

On the documentation of Apache2.2

ServerLimit <../mod/mpm_common.html#serverlimit>is a hard limit on the
number of active child processes, and must be greater than or equal to the
MaxClients <../mod/mpm_common.html#maxclients> directive divided by the
ThreadsPerChild <../mod/mpm_common.html# threadsperchild> directive.
ThreadLimit <../mod/mpm_common.html#threadlimit> is a hard limit of the
number of server threads, and must be greater than or equal to the
ThreadsPerChild <../mod/mpm_common.html#threadsperchild> directive.

I did like above on worker MPM but server reached Max connection when 256th
connection come.


StartServers 5
MaxClients 350
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
ServerLimit 40
ThreadLimit 40


Is there something wrong in my configuration ?

Regards,
Tseveen.

--00504502f52d0673da047aad58ab
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Hello,


On the documentation of Apache2.2 
>
l, Helvetica, sans-serif; font-size: 14px; color: rgb(0, 51, 102); line-hei=
ght: 18px; "> ew', Courier, monospace; font-size: 1em; color: rgb(40, 127, 0); backgr=
ound-color: inherit; "> " style=3D"color: rgb(40, 127, 0); background-color: inherit; ">ServerL=
imit 
is a hard limit on the number of active child processe=
s, and must be greater than or equal to the  style=3D"font-family: 'Courier New', Courier, monospace; font-size:=
1em; color: rgb(40, 127, 0); background-color: inherit; "> d/mpm_common.html#maxclients" style=3D"color: rgb(40, 127, 0); background-c=
olor: inherit; ">MaxClients
 directive divided by the <=
code class=3D"directive" style=3D"font-family: 'Courier New', Couri=
er, monospace; font-size: 1em; color: rgb(40, 127, 0); background-color: in=
herit; "> threadsperchild" style=3D"color: rgb(40, 127, 0); background-color: inh=
erit; ">ThreadsPerChild
 directive.  ctive" style=3D"font-family: 'Courier New', Courier, monospace; fon=
t-size: 1em; color: rgb(40, 127, 0); background-color: inherit; "> =3D"../mod/mpm_common.html#threadlimit" style=3D"color: rgb(40, 127, 0); ba=
ckground-color: inherit; ">ThreadLimit
 is a hard limit of t=
he number of server threads, and must be greater than or equal to the =
ier, monospace; font-size: 1em; color: rgb(40, 127, 0); background-color: i=
nherit; "> : rgb(40, 127, 0); background-color: inherit; ">ThreadsPerChild
=
 directive.

a, sans-serif; font-size: 14px; color: rgb(0, 51, 102); line-height: 18px; =
">
vetica, sans-serif"> 18px;">I did like above on worker MPM but server reached Max connection whe=
n 256th connection come.

>
<=
/font>
sans-serif">=

<IfModule mpm_worker_module>
    StartServer=
s               5
  =
 MaxClients              350
=
    MinSpareThreads       25
=
    MaxSpareThreads      75
 =
   ThreadsPerChild         25

    MaxRequestsPerChild   0
  =
 ServerLimit               40 >
    ThreadLimit           =C2=
=A0  40
</IfModule>

=
serif">Is the=
re something wrong in my configuration ?

>
<=
/font>
sans-serif">=
Regards,

>Tseveen. an>
ica, sans-serif"> x;">



--00504502f52d0673da047aad58ab--

Re: about ServerLimit and ThreadLimit

am 14.12.2009 11:23:41 von Philip Wigg

> On the documentation of Apache2.2
> ServerLimit=A0is a hard limit on the number of active child processes, an=
d
> must be greater than or equal to the=A0MaxClients=A0directive divided by
> the=A0ThreadsPerChild=A0directive.=A0ThreadLimit=A0is a hard limit of the=
number of
> server threads, and must be greater than or equal to
> the=A0ThreadsPerChild=A0directive.
> I did like above on worker MPM but server reached Max connection when 256=
th
> connection come.
>
>    =A0StartServers =A0 =A0 =A0 =A0 =A0 =A0 =A0 5
>    =A0MaxClients =A0 =A0 =A0 =A0 =A0 =A0 =A0350
>    =A0MinSpareThreads =A0 =A0 =A0 25
>    =A0MaxSpareThreads =A0 =A0 =A075
>    =A0ThreadsPerChild =A0 =A0 =A0 =A0 25
>    =A0MaxRequestsPerChild =A0 0
>    =A0ServerLimit =A0 =A0 =A0 =A0 =A0 =A0 =A0 40
>    =A0ThreadLimit =A0 =A0 =A0 =A0 =A0 =A0 =A040
>

> Is there something wrong in my configuration ?

My guess is that you're not using the worker MPM, and that you're
actually using the prefork MPM which is the default. Run a 'apachectl
-l' and see the modules you've got compiled-in. If you see 'prefork.c'
then that's why. See the docs for changing to worker if that's what
you want.

Cheers,
Phil.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: about ServerLimit and ThreadLimit

am 14.12.2009 12:26:52 von Tseveendorj Ochirlantuu

--0016e64ccb2acdff60047aae8c26
Content-Type: text/plain; charset=UTF-8

Philip Wigg,

You're right. Thank you very much. Solved

Regards,
Tseveen.

I got prefork.c. Can you drive me

On Mon, Dec 14, 2009 at 6:23 PM, Philip Wigg wrote:

> > On the documentation of Apache2.2
> > ServerLimit is a hard limit on the number of active child processes, and
> > must be greater than or equal to the MaxClients directive divided by
> > the ThreadsPerChild directive. ThreadLimit is a hard limit of the number
> of
> > server threads, and must be greater than or equal to
> > the ThreadsPerChild directive.
> > I did like above on worker MPM but server reached Max connection when
> 256th
> > connection come.
> >
> > StartServers 5
> > MaxClients 350
> > MinSpareThreads 25
> > MaxSpareThreads 75
> > ThreadsPerChild 25
> > MaxRequestsPerChild 0
> > ServerLimit 40
> > ThreadLimit 40
> >

> > Is there something wrong in my configuration ?
>
> My guess is that you're not using the worker MPM, and that you're
> actually using the prefork MPM which is the default. Run a 'apachectl
> -l' and see the modules you've got compiled-in. If you see 'prefork.c'
> then that's why. See the docs for changing to worker if that's what
> you want.
>
> Cheers,
> Phil.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--0016e64ccb2acdff60047aae8c26
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Philip Wigg,


You're right. Thank you very much. Solv=
ed

Regards,
Tseveen.

>
I got prefork.c. Can you drive me

uote">
On Mon, Dec 14, 2009 at 6:23 PM, Philip Wigg < =3D"mailto:phil@philipwigg.co.uk" target=3D"_blank">phil@philipwigg.co.uk a>> wrote:

x #ccc solid;padding-left:1ex">
> On the documentati=
on of Apache2.2

> ServerLimit is a hard limit on the number of active child process=
es, and

> must be greater than or equal to the MaxClients directive di=
vided by

> the ThreadsPerChild directive. ThreadLimit=C2 =A0is a ha=
rd limit of the number of

> server threads, and must be greater than or equal to

> the ThreadsPerChild directive.

> I did like above on worker MPM but server reached Max connection when =
256th

> connection come.

> <IfModule mpm_worker_module>

>     StartServers           =C2=
=A0   5

>     MaxClients           =C2=
=A0  350

>     MinSpareThreads       25

>     MaxSpareThreads      75

>     ThreadsPerChild         25

>     MaxRequestsPerChild   0

>     ServerLimit           =C2=
=A0   40

>     ThreadLimit           =C2=
=A0  40

> </IfModule>

> Is there something wrong in my configuration ?



My guess is that you're not using the worker MPM, and that =
you're

actually using the prefork MPM which is the default. Run a 'apachectl r>
-l' and see the modules you've got compiled-in. If you see 'pre=
fork.c'

then that's why. See the docs for changing to worker if that's what=


you want.



Cheers,

Phil.



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL:
lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g" target=3D"_blank">users-unsubscribe@httpd.apache.org

  "   from the digest: scribe@httpd.apache.org" target=3D"_blank">users-digest-unsubscribe@httpd.a=
pache.org


For additional commands, e-mail: org" target=3D"_blank">users-help@httpd.apache.org






--0016e64ccb2acdff60047aae8c26--

Re: about ServerLimit and ThreadLimit

am 14.12.2009 12:51:41 von Philip Wigg

> I got prefork.c. Can you drive me

I'm afraid I can't drive you, you'll have to read the documentation
about the process models. Here's a good start:-

http://httpd.apache.org/docs/2.2/mpm.html
http://httpd.apache.org/docs/2.2/mod/prefork.html

It might be that switching to the worker MPM is what you want, or you
might want to stay with prefork and just increase MaxClients but
you'll have to read about the MPMs and decide.

After reading the docs, if you have a specific issue you need help
with then feel free to come back with a suitably constructed smart
question and we'll be happy to help.

http://catb.org/~esr/faqs/smart-questions.html

Cheers,
Phil.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Re: about ServerLimit and ThreadLimit

am 15.12.2009 01:41:52 von Tseveendorj Ochirlantuu

--0016e64cba84f6eb19047ab9a796
Content-Type: text/plain; charset=UTF-8

Philip Wigg,

Sorry that was mistake. I didn't clear it :D
problem already solved. Have a nice day dude.

Best regards,
Tseveen.

On Mon, Dec 14, 2009 at 7:51 PM, Philip Wigg wrote:

> > I got prefork.c. Can you drive me
>
> I'm afraid I can't drive you, you'll have to read the documentation
> about the process models. Here's a good start:-
>
> http://httpd.apache.org/docs/2.2/mpm.html
> http://httpd.apache.org/docs/2.2/mod/prefork.html
>
> It might be that switching to the worker MPM is what you want, or you
> might want to stay with prefork and just increase MaxClients but
> you'll have to read about the MPMs and decide.
>
> After reading the docs, if you have a specific issue you need help
> with then feel free to come back with a suitably constructed smart
> question and we'll be happy to help.
>
> http://catb.org/~esr/faqs/smart-questions.html
>
> Cheers,
> Phil.
>
> ------------------------------------------------------------ ---------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

--0016e64cba84f6eb19047ab9a796
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

Philip Wigg,


Sorry that was mistake. I didn't clear =
it :D
problem already solved. Have a nice day dude.
>
Best regards,
Tseveen.

ail_quote">
On Mon, Dec 14, 2009 at 7:51 PM, Philip Wigg < =3D"mailto:phil@philipwigg.co.uk">phil@philipwigg.co.uk> wrot=
e:
eft:1px #ccc solid;padding-left:1ex;">
> I got prefork.c. Can you drive me



I'm afraid I can't drive you, you'll have to read the doc=
umentation

about the process models. Here's a good start:-



htt=
p://httpd.apache.org/docs/2.2/mpm.html


ank">http://httpd.apache.org/docs/2.2/mod/prefork.html



It might be that switching to the worker MPM is what you want, or you

might want to stay with prefork and just increase MaxClients but

you'll have to read about the MPMs and decide.



After reading the docs, if you have a specific issue you need help

with then feel free to come back with a suitably constructed smart

question and we'll be happy to help.



">http://catb.org/~esr/faqs/smart-questions.html



Cheers,

Phil.



------------------------------------------------------------ ---------

The official User-To-User support forum of the Apache HTTP Server Project.<=
br>
See <URL: lank">http://httpd.apache.org/userslist.html> for more info.

To unsubscribe, e-mail: g">users-unsubscribe@httpd.apache.org

  "   from the digest: scribe@httpd.apache.org">users-digest-unsubscribe@httpd.apac he.org

For additional commands, e-mail: org">users-help@httpd.apache.org






--0016e64cba84f6eb19047ab9a796--